package com.projectCommon.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
public class User {
//    CREATE TABLE `user` (
//            `id` char(32) NOT NULL COMMENT '用户id，主键',
//            `login_id` varchar(11) NOT NULL COMMENT '登录账号，使用手机号登录是11位，如果随机生成一个的话是10位或者其他。而且要唯一',
//            `login_password` char(32) NOT NULL COMMENT 'md5加密之后的密码',
//            `salt` char(1) NOT NULL COMMENT '盐，与密码有关系',
//            `affiliated_head_id` char(32) NOT NULL COMMENT '附属总店的id',
//            `affiliated_follow_id` char(32) NOT NULL COMMENT '附属从店的id',
//            `login_determine` char(1) NOT NULL DEFAULT '1' COMMENT '是否可以登录，1可登陆，0不可登录',
//            `delete_determine` char(1) NOT NULL DEFAULT '0' COMMENT '伪删除字段 1代表已经删除，0代表没有删除',
//            `user_name` varchar(10) DEFAULT NULL COMMENT '用户名字',
//            `user_phone` char(11) DEFAULT NULL COMMENT '用户手机号',
//            `user_pic` varchar(100) DEFAULT NULL COMMENT '用户头像',
//            `user_card_id` char(18) NOT NULL COMMENT '用户身份证号',
//            `user_identity` char(1) NOT NULL COMMENT '用户身份（主店店主，从店店主，员工）',
//            `create_Id` char(32) NOT NULL COMMENT '创建用户的id',
//            `UPDATE_Id` char(32) NOT NULL COMMENT '修改用户的id',
//            `create_time` datetime NOT NULL COMMENT '创建时间',
//            `update_time` datetime NOT NULL COMMENT '修改时间',
//    PRIMARY KEY (`id`),
//    UNIQUE KEY `login_id` (`login_id`)
//            ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户信息表'
    private String id;
    private String loginId;
    private String loginPassword;
    private Character salt;
    private String affiliatedHeadId;
    private String affiliatedFollowId;
    private Character loginDetermine;
    private String deleteDetermine;
    private String userName;
    private String userPhone;
    private String userPic;
    private String userCardId;
    private String userIdentity;
    private String createId;
    private String updateId;
    private Date createTime;
    private Date updateTime;

    public User(String id, String loginId, String loginPassword, Character salt, String affiliatedHeadId, String affiliatedFollowId, Character loginDetermine, String deleteDetermine, String userName, String userPhone, String userPic, String userCardId, String userIdentity, String createId, String updateId, Date createTime, Date updateTime) {
        this.id = id;
        this.loginId = loginId;
        this.loginPassword = loginPassword;
        this.salt = salt;
        this.affiliatedHeadId = affiliatedHeadId;
        this.affiliatedFollowId = affiliatedFollowId;
        this.loginDetermine = loginDetermine;
        this.deleteDetermine = deleteDetermine;
        this.userName = userName;
        this.userPhone = userPhone;
        this.userPic = userPic;
        this.userCardId = userCardId;
        this.userIdentity = userIdentity;
        this.createId = createId;
        this.updateId = updateId;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
